package com.zeng.springboot03web.Mapper;

import com.zeng.springboot03web.pojo.Books;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

//@Mapper : 表示本类是一个 MyBatis 的 Mapper
@Mapper
@Repository
public interface DepartmentMapper {

    List<Books> getDepartments();

    Books getDepartment(int id);
}
